{% if show %}

{% load i18n %}

<div class="paginator">

    {% if prev_dot %}
        <span class="number">
            <a href="./?{{ qs }}{{ page_var }}={{ prev_dot }}">...</a>
        </span>
    {% endif %}

    {% for i in page_numbers %}
        <span class="number">
        {% ifequal i page.number %}
            <b>{{ i }}</b>
        {% else %}
            <a href="./?{{ qs }}{{ page_var }}={{ i }}">{{ i }}</a>
        {% endifequal %}
        </span>
    {% endfor %}

    {% if next_dot %}
        <span class="number">
            <a href="./?{{ qs }}{{ page_var }}={{ next_dot }}">...</a>
        </span>
    {% endif %}

    <span class="larr">
        <span class="arrow">←</span>
        {% if page.has_previous %}
            <a href="./?{{ qs }}{{ page_var }}={{ page.previous_page_number }}">{% trans 'previous' %}</a>
        {% else %}
            {% trans 'previous' %}
        {% endif %}
    </span>

    <span class="rarr">
        {% if page.has_next %}
            <a href="./?{{ qs }}{{ page_var }}={{ page.next_page_number }}">{% trans 'next' %}</a>
        {% else %}
            {% trans 'next' %}
        {% endif %}
        <span class="arrow">→</span>
    </span>
</div>

{% endif %}